package com.hly;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = DoubleColonTest.class)
public class Example {

    @Test
    public void test() {
        InterfaceExample com =  Example::new;
        Example bean = com.create();
        System.out.println(bean);
    }
}

interface InterfaceExample{
    Example create();
}